package com.rtx.edi.platform.handler.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface HandleSqlMapper {

	/**
	 * 插入sql
	 * @param sql
	 * @return
	 */
	@Insert("${sql}")
	int insetSql(@Param("sql")String sql);
	
	/**
	 * 执行查询sql
	 * @param sql
	 * @return
	 */
	@Select("${sql}")
	List<Map<String,Object>> select(@Param("sql")String sql);
}
